home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / PAL.PAK / PAL.ODL < prev    next >
Text File  |  1997-05-06  |  2KB  |  80 lines

  1. // pal.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (pal.tlb) that will become a resource in
  5. // pal.ocx.
  6.  
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1992-1994 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // This source code is only intended as a supplement to the
  12. // Microsoft Foundation Classes Reference and the
  13. // Books Online documentation provided with the library.
  14. // See these sources for detailed information regarding the
  15. // Microsoft Foundation Classes product.
  16.  
  17. #include <olectl.h>
  18.  
  19. [ uuid(5733F771-BE58-101A-B57A-0000C0C3ED5F), version(1.0),
  20.   helpstring("Pal OLE Custom Control module"), control ]
  21. library PalLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CPalCtrl
  27.  
  28.     [ uuid(37446B83-5870-101B-B57B-00608CC96AFA),
  29.       helpstring("Dispatch interface for Pal Control"), hidden ]
  30.     dispinterface _DPal
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CPalCtrl)
  36.             [id(1)] short Length;
  37.             [id(2)] OLE_HANDLE Handle;
  38.             [id(3)] IPictureDisp* Picture;
  39.             //}}AFX_ODL_PROP
  40.  
  41.         methods:
  42.             // NOTE - ClassWizard will maintain method information here.
  43.             //    Use extreme caution when editing this section.
  44.             //{{AFX_ODL_METHOD(CPalCtrl)
  45.             [id(4), propget] OLE_COLOR Entry(short nIndex);
  46.             [id(4), propput] void Entry(short nIndex, OLE_COLOR newValue);
  47.             //}}AFX_ODL_METHOD
  48.  
  49.             [id(DISPID_ABOUTBOX)] void AboutBox();
  50.     };
  51.  
  52.     //  Event dispatch interface for CPalCtrl
  53.  
  54.     [ uuid(37446B84-5870-101B-B57B-00608CC96AFA),
  55.       helpstring("Event interface for Pal Control") ]
  56.     dispinterface _DPalEvents
  57.     {
  58.         properties:
  59.             //  Event interface has no properties
  60.  
  61.         methods:
  62.             // NOTE - ClassWizard will maintain event information here.
  63.             //    Use extreme caution when editing this section.
  64.             //{{AFX_ODL_EVENT(CPalCtrl)
  65.             //}}AFX_ODL_EVENT
  66.     };
  67.  
  68.     //  Class information for CPalCtrl
  69.  
  70.     [ uuid(5733F76E-BE58-101A-B57A-0000C0C3ED5F),
  71.       helpstring("Pal Control"), control ]
  72.     coclass Pal
  73.     {
  74.         [default] dispinterface _DPal;
  75.         [default, source] dispinterface _DPalEvents;
  76.     };
  77.  
  78.     //{{AFX_APPEND_ODL}}
  79. };
  80.